﻿<%@ Page Language="C#" MasterPageFile="~/Global/User.Master" AutoEventWireup="true"
    CodeBehind="OrderResult.aspx.cs" Inherits="TVC_WEB.Global.OrderResult" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .btnShop
        {
            background-image: url(                       '/Global/images/continue-shopping.gif' );
            width: 170px;
            height: 30px;
            border: none;
            cursor: pointer;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>
        Đặt hàng thành công
    </h1>
    <div>
        <table width="100%">
            <tr>
                <td align="right">
                    &nbsp;
                </td>
                <td>
                    <asp:Label ID="lbErrPass" runat="server" ForeColor="#FF3300"></asp:Label>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="right" class="style1">
                    Mã đặt hàng
                </td>
                <td class="style1" colspan="3">
                    <asp:Label ID="lblOrder" runat="server" Font-Bold="True"></asp:Label>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="right" class="style1">
                    Loại thanh toán
                </td>
                <td class="style1">
                    <asp:Label ID="lblPayment" runat="server" Font-Bold="True"></asp:Label>
                </td>
                <td class="style1">
                    Số mặt hàng
                </td>
                <td class="style1">
                    <asp:Label ID="lblCount" runat="server" Font-Bold="True"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" class="style1" width="150px">
                    Phí vận chuyển</td>
                <td class="style1" width="201px">
                    <asp:Label ID="lblVal" runat="server" Font-Bold="True"></asp:Label>
                </td>
                <td class="style1">
                    Tổng tiền                 </td>
                <td class="style1">
                    <asp:Label ID="lblAmount" runat="server" Font-Bold="True"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="right" class="style2" colspan="2">
                    <h3>
                        Người đặt</h3>
                </td>
                <td align="right" class="style2">
                    &nbsp;
                </td>
                <td align="right" class="style2">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="right" colspan="3">
                    <hr />
                </td>
                <td align="right">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="right" class="style1">
                    Họ và tên
                </td>
                <td class="style1">
                    <asp:Label ID="lblBillName" runat="server" Font-Bold="True"></asp:Label>
                </td>
                <td class="style1">
                    Email
                </td>
                <td class="style1">
                    <asp:Label ID="lblBillEmail" runat="server" Font-Bold="True"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    Địa chỉ
                </td>
                <td colspan="3">
                    <asp:Label ID="lblBillAdd" runat="server" Font-Bold="True"></asp:Label>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="right">
                    Quốc gia
                </td>
                <td>
                    <asp:Label ID="lblBillCountry" runat="server" Font-Bold="True"></asp:Label>
                </td>
                <td>
                    Thành phố
                </td>
                <td>
                    <asp:Label ID="lblBillCity" runat="server" Font-Bold="True"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    Điện thoại
                </td>
                <td colspan="3">
                    <asp:Label ID="lblBillPhone" runat="server" Font-Bold="True"></asp:Label>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="right">
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="right" class="style2" colspan="2">
                    <h3>
                        Người nhận</h3>
                </td>
                <td align="right" class="style2">
                    &nbsp;
                </td>
                <td align="right" class="style2">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="right" colspan="3">
                    <hr />
                </td>
                <td align="right">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="right" class="style1">
                    Họ và tên
                </td>
                <td class="style1">
                    <asp:Label ID="lbShipName" runat="server" Font-Bold="True"></asp:Label>
                </td>
                <td class="style1">
                    Email
                </td>
                <td class="style1">
                    <asp:Label ID="lbShipEmail" runat="server" Font-Bold="True"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    Địa chỉ
                </td>
                <td colspan="3">
                    <asp:Label ID="lbShipAdd" runat="server" Font-Bold="True"></asp:Label>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="right">
                    Quốc gia
                </td>
                <td>
                    <asp:Label ID="lbShipCountry" runat="server" Font-Bold="True"></asp:Label>
                </td>
                <td>
                    Thành phố
                </td>
                <td>
                    <asp:Label ID="lbShipCity" runat="server" Font-Bold="True"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    Điện thoại
                </td>
                <td colspan="3">
                    <asp:Label ID="lbShipPhone" runat="server" Font-Bold="True"></asp:Label>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="right">
                    &nbsp;</td>
                <td colspan="3">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" colspan="4">
                    <div align="center">
                        <asp:Button ID="btnShop" runat="server" Text="" CssClass="btnShop" OnClick="btnShop_Click" />
                    </div>
                </td>
            </tr>
            <tr>
                <td align="right" colspan="4">
                    &nbsp;</td>
            </tr>
        </table>
        <div>
            <asp:ListView ID="lvcart" runat="server" 
                onselectedindexchanged="lvcart_SelectedIndexChanged">
                <LayoutTemplate>
                    <table class="basket">
                        <tbody>
                            <tr class="alt">
                                <td align="center" style="padding-right: 0px">
                                    &nbsp;
                                </td>
                                <td align="left">
                                    <b>Item</b>
                                </td>
                                <td align="center">
                                    <b>Qty</b>
                                </td>
                                <td align="right">
                                    <b>Price</b>
                                </td>
                                <td align="right">
                                    <b>Subtotal</b>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr class="alt">
                                <td colspan="6" style="padding: 0px">
                                    <center>
                                        <div class="hrd">
                                            <hr />
                                        </div>
                                    </center>
                                </td>
                            </tr>
                            <tr id="itemPlaceHolder" runat="server">
                            </tr>
                            <tr>
                                <td colspan="6" style="padding-left: 0px; padding-right: 0px;">
                                    <center>
                                        <div class="hrd">
                                            <hr />
                                        </div>
                                    </center>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </LayoutTemplate>
                <EmptyItemTemplate>
                    <div style="width: 100%;">
                        Sorry, no products in your basket
                    </div>
                </EmptyItemTemplate>
                <ItemTemplate>
                    <tr>
                        <td align="center" style="padding-top: 10px; padding-right: 0px;">
                            <asp:HiddenField ID="hdID" runat="server" Value='<%#Eval("ProductID") %>' />
                            <a href="prodetail.aspx?id=<%#Eval("ProductID") %>">
                                <img src="<%#GetImage(Eval("Image").ToString()) %>" height="27px" hspace="0" vspace="0"
                                    alt="<%#Eval("NameVN") %>" /></a>
                        </td>
                        <td align="left" width="100%" style="padding-top: 10px">
                            <a href="prodetail.aspx?id=<%#Eval("ProductID") %>">
                                <%#Eval("NameVN") %></a> -
                            <%#Eval("ShortDecribes")%>
                        </td>
                        <td align="center" style="padding-top: 10px">
                            <%#Eval("Quantity") %>
                        </td>
                        <td align="right" style="padding-top: 10px">
                            <%#GetPrice(Eval("Price").ToString())%>
                        </td>
                        <td align="right" style="padding-top: 10px">
                            <%#GetPrice(Eval("SubTotal").ToString())%>
                        </td>
                    </tr>
                </ItemTemplate>
                <ItemSeparatorTemplate>
                    <tr>
                        <td colspan="6" style="padding-left: 0px; padding-right: 0px;">
                            <center>
                                <div class="hrd">
                                    <hr />
                                </div>
                            </center>
                        </td>
                    </tr>
                </ItemSeparatorTemplate>
            </asp:ListView>
        </div>
        <asp:HiddenField ID="hdOrderId" runat="server" />
    </div>
</asp:Content>
